<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>全部文章</title>
<link rel="stylesheet" href="image/style.css" />
</head>

<body topmargin="0" leftmargin="0" bgcolor="#F3F3F3">
	<jsp:include page="include/MainHeader.jsp"></jsp:include>
	<table width="1000" border="0" cellpadding="0" cellspacing="0"
		align="center">
		<tr height="30" valign="bottom">
			<td class="title">&nbsp;&nbsp;全部文章</td>
		</tr>
		<tr>
			<td colspan="2" valign="top">
				<table cellpadding="4" cellspacing="1">
					<tr>
						<td>
							<table width="1000" cellpadding="6" cellspacing="1"
								bgcolor="#CCCCCC">
								<!-- 循环输出 -->
								<s:iterator value="#request.all" id="art">
									<tr>
										<td bgcolor="#FFFFFF"><font class="chinesefont105main">
												<!-- 文章标题  --> 
												<a href="showArticleContent.action?id=<s:property value='#art.id'/>">
													<s:property value="#art.title" />
											s	</a>
												<hr size='1' noshade color='#CCCCCC'> <br>
												<div align='right' class='smalltxt' height='32px'>
													<!-- 发表时间 -->
													发表于:
													<s:date name="#art.date" />
													<!-- 评论与点击数 -->
													|评论()|点击(<s:property value="#art.hasread" />)|作者:
													<s:property value="#art.username" />
												</div>
										</font></td>
									</tr>
								</s:iterator>
							</table>
						</td>
					</tr>

					<tr>
						<td align="center"><s:if test="#request.page.hasPrePage">
								<!-- 判断是否为真 -->
								<a href="showAllArticle.action?currentPage=1">首页</a>
								<a href="showAllArticle.action?currentPage=${page.currentPage -1 }">上一页</a>
							</s:if> <s:else>
										首页
										上一页
							</s:else> <s:if test="#request.page.hasNextPage">
								<a
									href="showAllArticle.action?currentPage=${page.currentPage + 1 }">下一页</a>
								<a href="showAllArticle.action?currentPage=${page.totalPage }">尾页</a>
							</s:if> <s:else>
													下一页
													尾页
							</s:else></td>
					</tr>

				</table>
			</td>
		</tr>
	</table>
</body>
</html>